package com.dummy.server;

import java.util.ArrayList;
import java.util.List;

import com.pervasive.project.unified.data.constants.Constants;
import com.pervasive.project.unified.data.model.dto.CardInfoContainer;
import com.pervasive.project.unified.data.model.request.StartGameRequest;
import com.pervasive.project.unified.data.model.response.StartGameResponse;

public class StartGame {

	public static StartGameResponse startGame(StartGameRequest gameRequest)
	{
		StartGameResponse gameResponse = new StartGameResponse();
		
		List<CardInfoContainer> redOpen = new ArrayList<CardInfoContainer>();
		
		List<CardInfoContainer> redHand = new ArrayList<CardInfoContainer>();
		
		List<CardInfoContainer> blueOpen = new ArrayList<CardInfoContainer>();
		
		List<CardInfoContainer> blueHand = new ArrayList<CardInfoContainer>();
		
		List<CardInfoContainer> greenOpen = new ArrayList<CardInfoContainer>();
		
		List<CardInfoContainer> greenHand = new ArrayList<CardInfoContainer>();
		
		List<CardInfoContainer> yellowOpen = new ArrayList<CardInfoContainer>();
		
		List<CardInfoContainer> yellowHand = new ArrayList<CardInfoContainer>();
		
		redOpen.add(new CardInfoContainer(Constants.cardId.RED_1, Constants.cardStar.THREE));
		redOpen.add(new CardInfoContainer(Constants.cardId.RED_2, Constants.cardStar.THREE));
		redOpen.add(new CardInfoContainer(Constants.cardId.RED_3, Constants.cardStar.THREE));
		redOpen.add(new CardInfoContainer(Constants.cardId.RED_4, Constants.cardStar.THREE));
		redOpen.add(new CardInfoContainer(Constants.cardId.RED_5, Constants.cardStar.THREE));
		redOpen.add(new CardInfoContainer(Constants.cardId.RED_6, Constants.cardStar.THREE));
		redOpen.add(new CardInfoContainer(Constants.cardId.RED_7, Constants.cardStar.THREE));
		
		blueOpen.add(new CardInfoContainer(Constants.cardId.BLUE_1, Constants.cardStar.THREE));
		blueOpen.add(new CardInfoContainer(Constants.cardId.BLUE_2, Constants.cardStar.THREE));
		blueOpen.add(new CardInfoContainer(Constants.cardId.BLUE_3, Constants.cardStar.THREE));
		blueOpen.add(new CardInfoContainer(Constants.cardId.BLUE_4, Constants.cardStar.THREE));
		blueOpen.add(new CardInfoContainer(Constants.cardId.BLUE_5, Constants.cardStar.THREE));
		blueOpen.add(new CardInfoContainer(Constants.cardId.BLUE_6, Constants.cardStar.THREE));
		blueOpen.add(new CardInfoContainer(Constants.cardId.BLUE_7, Constants.cardStar.THREE));
		
		greenOpen.add(new CardInfoContainer(Constants.cardId.GREEN_1, Constants.cardStar.THREE));
		greenOpen.add(new CardInfoContainer(Constants.cardId.GREEN_2, Constants.cardStar.THREE));
		greenOpen.add(new CardInfoContainer(Constants.cardId.GREEN_3, Constants.cardStar.THREE));
		greenOpen.add(new CardInfoContainer(Constants.cardId.GREEN_4, Constants.cardStar.THREE));
		greenOpen.add(new CardInfoContainer(Constants.cardId.GREEN_5, Constants.cardStar.THREE));
		greenOpen.add(new CardInfoContainer(Constants.cardId.GREEN_6, Constants.cardStar.THREE));
		greenOpen.add(new CardInfoContainer(Constants.cardId.GREEN_7, Constants.cardStar.THREE));
		
		yellowOpen.add(new CardInfoContainer(Constants.cardId.YELLOW_1, Constants.cardStar.THREE));
		yellowOpen.add(new CardInfoContainer(Constants.cardId.YELLOW_2, Constants.cardStar.THREE));
		yellowOpen.add(new CardInfoContainer(Constants.cardId.YELLOW_3, Constants.cardStar.THREE));
		yellowOpen.add(new CardInfoContainer(Constants.cardId.YELLOW_4, Constants.cardStar.THREE));
		yellowOpen.add(new CardInfoContainer(Constants.cardId.YELLOW_5, Constants.cardStar.THREE));
		yellowOpen.add(new CardInfoContainer(Constants.cardId.YELLOW_6, Constants.cardStar.THREE));
		yellowOpen.add(new CardInfoContainer(Constants.cardId.YELLOW_7, Constants.cardStar.THREE));
		
		/*redHand.add(new CardInfoContainer(Constants.cardId.RED_7, Constants.cardStar.TWO, 20));
		blueHand.add(new CardInfoContainer(Constants.cardId.BLUE_7, Constants.cardStar.TWO, 20));
		greenHand.add(new CardInfoContainer(Constants.cardId.GREEN_7, Constants.cardStar.TWO, 20));
		yellowHand.add(new CardInfoContainer(Constants.cardId.YELLOW_7, Constants.cardStar.TWO, 20));*/
		
		gameResponse.setRedOpen(redOpen);
		gameResponse.setBlueOpen(blueOpen);
		gameResponse.setGreenOpen(greenOpen);
		gameResponse.setYellowOpen(yellowOpen);
		
		gameResponse.setRedHand(redHand);
		gameResponse.setBlueHand(blueHand);
		gameResponse.setGreenHand(greenHand);
		gameResponse.setYellowHand(yellowHand);
		
		gameResponse.setMinute(5);
		gameResponse.setSeconds(0);
		return gameResponse;
	}
}
